<%@ page import="javax.jms.Session" %>
<%@ page import="com.mooc.po.User" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<html>

<head>
	<meta charset="UTF-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" >
	<title>机构介绍</title>
	<link rel="stylesheet" type="text/css" href="../../css/reset.css">
	<link rel="stylesheet" type="text/css" href="../../css/animate.css">
	<link rel="stylesheet" type="text/css" href="../../css/style.css">
    <link rel="stylesheet" type="text/css" href="../../../js/plugins/queryCity/css/cityLayout.css">
    
    <script src="../../js/jquery.min.js" type="text/javascript"></script>
    <script src="../../js/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        function checkisfav() {
            if ($("#isSave").val()=="yes"){
                $(".collectionbtn").html("已收藏")
            }else{
                if($("#isSave").val()=="no"){
                    $(".collectionbtn").html("收藏")
                }
            }
        }
    </script>
    <script src="../../js/jquery.min.js" type="text/javascript"></script>
    <script src="../../../js/message.js" type="text/javascript"></script>
    <script src="../../js/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        var ctx = "${sessionScope.user_session}";
    </script>
</head>
<body onload="checkisfav(),setTimeout('getcount()',1000)">
<section class="headerwrap headerwrap2">
    <header>
		<div  class="header2 header">

            <div class="top">
                <div class="wp">
                    <div class="fl"><p>服务电话：<b>13280797579</b></p></div>
                    <c:choose>
                        <c:when test="${sessionScope.user_session!=null}">
                            <div class="personal">
                                <dl class="user fr">
                                    <dd>${sessionScope.user_session.username}<img class="down fr" src="${pageContext.request.contextPath}/images/top_down.png"/></dd>
                                    <dt><img width="20" height="20" src="${pageContext.request.contextPath}${sessionScope.user_session.image}"/></dt>
                                </dl>
                                <div class="userdetail">
                                    <dl>
                                        <dt><img width="80" height="80" src="${pageContext.request.contextPath}${sessionScope.user_session.image}"/></dt>
                                        <dd>
                                            <h2>${sessionScope.user_session.username}</h2>
                                            <p>用户</p>
                                        </dd>
                                    </dl>
                                    <div class="btn">
                                        <a class="personcenter fl" href="${pageContext.request.contextPath}/usercenter">进入个人中心</a>
                                        <a class="fr" href="${pageContext.request.contextPath}/logout">退出</a>
                                    </div>
                                </div>
                                <a href="/message">
                                    <div class="msg-num"><span id="MsgNum"></span></div>
                                </a>
                            </div>
                        </c:when>
                        <c:otherwise>
                            <a style="color:white" class="fr registerbtn" href="/register">注册</a>
                            <a style="color:white" class="fr loginbtn" href="${pageContext.request.contextPath}/login">登录</a>
                        </c:otherwise>
                    </c:choose>

                </div>
            
            
    <div class="middle companyheader">
        <div class="wp">
            <img class="fl" style="width: 112px;height: 103px" src="../../media/org/2016/11/imooc.png"/>
            <div class="head fl">
                <h1>
                    ${requestScope.org.name}
                    <img src="../../images/authentication.png"/>
                    <img src="../../images/gold.png"/>
                </h1>
                <p class="fl">
                    <span class="fl" style="margin-top:8px;color:#848484;">推荐指数： </span>
                    <span class="precision company-credit" data-star-scope="5.0"></span>
                    <span class="key">5.0</span>
                </p>
            </div>
            <div class="btn fr collectionbtn  notlogin" onclick="add_fav(${requestScope.org.id},1)">
                收藏
            </div>

        </div>
    </div>
			</div>
        </div></header>
</section>
<section>
	<div class="wp">
		<ul  class="crumbs">
            <li><a href="/index">首页</a>></li>
			<li><a href="/org_list">课程机构</a>></li>
			<li>机构介绍</li>
		</ul>
	</div>
</section>

<section>
	<div class="wp list personal_list comp">
		<div class="left">
			<ul>
				<li class=""><a href="/org_home?id=${requestScope.org.id}">机构首页</a></li>
                <li class=""><a href="/org-detail-course?id=${requestScope.org.id}">机构课程</a></li>
                <li class="active2"><a href="/org-detail-desc?id=${requestScope.org.id}">机构介绍</a></li>
                <li class=""><a href="/org-detail-teachers?id=${requestScope.org.id}">机构讲师</a></li>
			</ul>
		</div>
    
<div class="right companycenter layout" >
        <div class="head">
            <h1>机构介绍</h1>
        </div>
        <div class="des">
            <input type="hidden" id="savesession" value="${sessionScope.user_session}">
            <input type="hidden" id="isSave" value="${requestScope.favflag}">
            <p><p>&nbsp; &nbsp;</p><h1 class="ue_t" label="Title center" name="tc" style="border-bottom-color:#cccccc;border-bottom-width:2px;border-bottom-style:solid;padding:0px 4px 0px 0px;text-align:center;margin:0px 0px 20px;"><span style="color:#c0504d;">${requestScope.org.descr}</span></h1><p style="text-align:center;"><strong class="ue_t">[键入文档副标题]</strong></p><h3><span class="ue_t" style="font-family:幼圆">[标题 1]</span></h3><p class="ue_t" style="text-indent:2em;">对于“插入”选项卡上的库，在设计时都充分考虑了其中的项与文档整体外观的协调性。 您可以使用这些库来插入表格、页眉、页脚、列表、封面以及其他文档构建基块。 您创建的图片、图表或关系图也将与当前的文档外观协调一致。</p><p class="ue_t" style="text-indent:2em;"><img src="../../media/courses/ueditor/57aa86a0000145c512000460_20161210234050_865.jpg" title="" alt="57aa86a0000145c512000460.jpg"/> </p><h3><span class="ue_t" style="font-family:幼圆">[标题 2]</span></h3><p><img src="http://api.map.baidu.com/staticimage?center=116.410899,39.863624&zoom=11&width=530&height=340&markers=116.404,39.915" width="530" height="340"/> </p><p class="ue_t" style="text-indent:2em;">在“开始”选项卡上，通过从快速样式库中为所选文本选择一种外观，您可以方便地更改文档中所选文本的格式。 您还可以使用“开始”选项卡上的其他控件来直接设置文本格式。大多数控件都允许您选择是使用当前主题外观，还是使用某种直接指定的格式。</p><h3><span class="ue_t" style="font-family:幼圆">[标题 3]</span></h3><p>2016-12-10</p><p class="ue_t">对于“插入”选项卡上的库，在设计时都充分考虑了其中的项与文档整体外观的协调性。 您可以使用这些库来插入表格、页眉、页脚、列表、封面以及其他文档构建基块。 您创建的图片、图表或关系图也将与当前的文档外观协调一致。</p><p class="ue_t"><br/> </p><p><br/></p><p><br/></p></p>
            
        </div>
    </div>
    </div>

</section>
<!--sidebar start-->
<section>
    <ul class="sidebar">
        <li class="qq">
            <a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2023525077&site=qq&menu=yes"></a>
        </li>
        <li class="totop"></li>
    </ul>
</section>
<!--sidebar end-->
<!--header start-->
</div>
<!--弹出省省市-->
<script src="../../js/selectUi.js" type='text/javascript'></script>
<script type="text/javascript" src="../../js/plugins/laydate/laydate.js"></script>
<script src="../../js/plugins/layer/layer.js"></script>
<script src="../../js/plugins/queryCity/js/public.js" type="text/javascript"></script>
<script src="../../js/selectUi.js" type='text/javascript'></script>
<script src="../../js/deco-common.js" type='text/javascript'></script>
<script type="text/javascript" src="../../js/plugins/laydate/laydate.js"></script>
<script src="../../js/plugins/layer/layer.js"></script>
<script src="../../js/plugins/queryCity/js/public.js" type="text/javascript"></script>
<script src="../../js/unslider.js" type="text/javascript"></script>
<script src="../../js/plugins/jquery.scrollLoading.js"  type="text/javascript"></script>
<script src="../../js/deco-common.js"  type="text/javascript"></script>

<script type="text/javascript" src="../../js/index.js"></script>
<script type="text/javascript" src="../../js/plugins/jquery.raty.js"></script>
<script type="text/javascript">
    function add_fav(fav_id, fav_type){
            if($("#savesession").val()==""){
                var r = confirm("您还未登录，单击确定登录")
                if (r==true){
                    window.location.href="/login"
                }
            }
            $.ajax({
                type: "POST",
                url:"/org/add_fav",
                dataType:"json",
                data:JSON.stringify({'fav_id':fav_id, 'fav_type':fav_type}),
                contentType:"application/json;charset=utf-8",
                success: function(data) {
                    if(data.sta=="ok"){
                        $(".collectionbtn").html("已收藏")
                    }
                    if (data.sta=="no"){
                        $(".collectionbtn").html("收藏")
                    }
                },
            });
        }

$(function(){
    var $precision = $('.precision'),
        score = $precision.attr('data-star-scope'),
        option =  {
                    half		: true,
                    path		: '../images/',
                    precision	: true,
                    size		: 24,
                    starOff		: 'g_star.png',
                    starOn		: 'r_star.png',
                    starHalf	: 'h_star.png',
                    hints       : ['极差', '差', '一般', '好评', '非常满意'],
                    noRatedMsg  : '暂时还未获得评价！',
                    readOnly    : true,
                    score       : score
                };
    $precision.raty(option);

})
</script>


<script type="text/javascript">
$(function() {
    $('.recordbtn1').click(function(){
        $('.recordbox1').show();
    });
    $('.recordbtn2').click(function(){
        $('.recordbox2').show();
    });

//    $('.imgslide').unslider({
//        speed: 500,               //  The speed to animate each slide (in milliseconds)
//        delay: 3000,              //  The delay between slide animations (in milliseconds)
//        complete: function() {},  //  A function that gets called after every slide animation
//        keys: true,               //  Enable keyboard (left, right) arrow shortcuts
//        dots: true,               //  Display dot navigation
//        fluid: false              //  Support responsive design. May break non-responsive designs
//    });
//    var unslider = $('.imgslide').unslider();
//    $('.unslider-arrow').click(function() {
//        var fn = this.className.split(' ')[1];
//        unslider.data('unslider')[fn]();
//    });
});
</script>

</body>
</html>
